/* 
 * File:   IF.cpp
 * Author: Saulo
 * 
 * Created on 23 de Maio de 2010, 21:33
 */

#include "IF.h"

IF::IF(memoria* _mem) {
    this->pc = 0;
    this->buffer = " ";
    this->mem = _mem;
}

IF::IF(const IF& orig) {
}

IF::~IF() {
}

void IF::escolhe(){
    this->buffer = mem->getLine(pc);
    pc++;
}

string IF::getBuffer(){
    return buffer;
}

void IF::setPC(int pc){
    this->pc = pc;
}

int IF::getPC(){
    return this->pc;
}
